<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let p = new Promise((resolve,reject)=>{
            setTimeout(()=>{
                reject('error');
            },1000);
        })
        let result = p.then(value=>{
            console.log('我是then成功的回调', value);
            return new Promise((resolve,reject)=>{
                reject('社会很单纯，复杂的是人');
            })
        },reason=>{
            console.log('我是then失败的回调',reason);
        })
        console.log('p',p);
        console.log('result',result);
    </script>
</body>
</html>